#include "fxcc/yml/Serializer.h"
#include "fxcc/core/graph/common/AABB.h"

using namespace fxcc::yml;
using CType = fxcc::graph::common::AABB;;

template<>
void Serializer::Encode<CType>(YAML::Node& node, const CType& inst)
{
    SetVariable<glm::vec3>(node, "m_Center", inst.m_Center);
    SetVariable<glm::vec3>(node, "m_HalfExtends", inst.m_HalfExtends);

}


template<>
bool Serializer::Decode<CType>(const YAML::Node& node, CType& inst)
{
    GetVariable<glm::vec3>(node, "m_Center", inst.m_Center);
    GetVariable<glm::vec3>(node, "m_HalfExtends", inst.m_HalfExtends);

    return true;
}
